/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

header p {
    font-size: 16px;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

section {
    margin-bottom: 30px;
}

section h2 {
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.user-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.info-item span {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #eee;
}

.status-display {
    text-align: center;
    margin: 20px 0;
}

.status-badge {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    display: inline-block;
    background: #6c757d;
}

.task-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.task-stats span {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.task-list {
    list-style: none;
}

.task-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow 0.3s;
}

.task-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.task-item-title {
    font-weight: 500;
    font-size: 16px;
    margin-right: 10px;
}

.task-item-title.completed {
    text-decoration: line-through;
    color: #6c757d;
}

.task-item-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.priority-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    color: white;
}

.priority-high {
    background: #dc3545;
}

.priority-medium {
    background: #ffc107;
    color: #333;
}

.priority-low {
    background: #28a745;
}

.status-badge-small {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    color: white;
}

.status-pending {
    background: #6c757d;
}

.status-in-progress {
    background: #17a2b8;
}

.status-completed {
    background: #28a745;
}

.task-item-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.due-date {
    font-size: 12px;
    color: #666;
}

.due-date.overdue {
    color: #dc3545;
    font-weight: 500;
}

.no-tasks {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

footer {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .user-info {
        grid-template-columns: 1fr;
    }
    
    .task-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* 工时显示样式 */
.task-hours {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.task-hours.small {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 400;
}